<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@include file="common.jsp" %>
 <!-- 内容区域 -->
        <div class="tpl-content-wrapper">
            <div class="row-content am-cf">
                 <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title  am-cf">商家审核</div>
                            </div>
                            <div class="widget-body  am-fr">

                               
                             
							
                                <div class="am-u-sm-12">
                                    <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
                                        <thead>
                                            <tr>
                                                <th>商家标号</th>
                                                <th>商家邮箱</th>
                                                <th>商家姓名</th>
                                                <th>是否有效</th>
                                                <th>操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                         <c:forEach items="${AdminUser}" var="item">
                                            <tr class="gradeX">
                                            
                                                <td class="am-text-middle">${item.id}</td>
                                                <td class="am-text-middle">${item.email}</td>
                                                <td class="am-text-middle">${item.userName}</td>
                                                <td class="am-text-middle">${item.isValid}</td>
                                                <td class="am-text-middle">
                                                    <div class="tpl-table-black-operation">
                                                        <a href="${pageContext.request.contextPath}/review/updatenotpass.shtml?id=${item.id}" >
                                                            <i class="am-icon-pencil"></i> 不通过
                                                        </a>
                                                        <a href="${pageContext.request.contextPath}/review/updatepass.shtml?id=${item.id}" class="tpl-table-black-operation-del">
                                                            <i class="am-icon-trash"></i> 通过
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr> 
                                            </c:forEach>
                                            <!-- more data -->
                                        </tbody>
                                    </table>
                                </div>
                                <div class="am-u-lg-12 am-cf">

                                    <div class="am-fr">
                                        <ul class="am-pagination tpl-pagination">
                                        <c:choose>
   												<c:when test="${pageHelper.currentPageIndex==1}">
     													 <li class="am-disabled"><a href="${pageContext.request.contextPath}/review/page.shtml?pageIndex=${pageHelper.currentPageIndex-1}">«</a></li>
    											</c:when>
  												  <c:otherwise>
  												  		<li><a href="${pageContext.request.contextPath}/review/page.shtml?pageIndex=${pageHelper.currentPageIndex-1}">«</a></li>
   												 </c:otherwise>
											 </c:choose>
											 <!-- << -->
											 
											
											 <c:forEach items="${pageHelper.pageNumList }" var="item">										
                                             		<c:if test="${pageHelper.currentPageIndex == item}">
                                             			<li class="am-active"><a href="${pageContext.request.contextPath}/review/page.shtml?pageIndex=${item}">${item}</a></li>
                                             		</c:if>
                                             		<c:if  test="${pageHelper.currentPageIndex != item}">
                                             			<li><a href="${pageContext.request.contextPath}/review/page.shtml?pageIndex=${item}">${item }</a></li>
                                             		</c:if>                                           
										        </c:forEach>
											
											<!-- >> -->
											<c:choose>                                        	
   												<c:when test="${pageHelper.currentPageIndex==pageHelper.totalPages}">
     													 <li class="am-disabled"> <a href="${pageContext.request.contextPath}/review/page.shtml?pageIndex=${pageHelper.currentPageIndex+1}">»</a></li>
    											</c:when>
  												  <c:otherwise>
  												  		<li><a	href="${pageContext.request.contextPath}/review/page.shtml?pageIndex=${pageHelper.currentPageIndex+1}">»</a></li>
   												 </c:otherwise>
											 </c:choose>
											 
											 
											

                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
    <script src="${pageContext.request.contextPath}/assets/js/amazeui.min.js"></script>
    <script src="${pageContext.request.contextPath}/assets/js/app.js"></script>

</body>

</html>